<?php
/**
 * Created by PhpStorm.
 * User: Mars.Li
 * Date: 2015/6/29
 * Time: 9:28
 */
namespace Admin\Controller;
//use Vendor\C6\Api;
class NiceController extends  CommonController {
public $token = '9f21c37a0b3fe8438b76ada908b68cdc';

        public function index() {

    		$token = '9f21c37a0b3fe8438b76ada908b68cdc';
			$c = new \soapclient ( 'http://192.168.1.16/c6/JHOAService/JHService.asmx?wsdl',array( 'trace' => true, 'exceptions' => true ));
			

			$params['token'] = $token;
			$params['loginCode'] = getUserName('','user_id');
			$data =	 $c->GetPendingWorkList($params);

			$this->assign('pending_work_list',$data->GetPendingWorkListResult);
  	      	$this->assign('jump_url','http://192.168.1.16/c6/JHOAService/SsoToken.aspx?token='.$this->token.'&account=08043&url=');
  	      	

  	      	$r = new \soapclient('http://192.168.1.16/c6/JHOAService/JHService.asmx?wsdl',array('trace' => true,'exceptions' => true));
			$rdata =  $r->GetFlatInfoWaitingList($params);
		
			$this->assign('flat_info_waiting',$rdata->GetFlatInfoWaitingListResult);
            
            $this->display();
        }


        public function test() {

			$this->display();
        }


	public function login() {

			$this->assign('jump_url','http://192.168.1.16/c6/JHOAService/SsoToken.aspx?token='.$this->token.'&account=08043&url=');
			$this->display();
	}


}